package com.little.pattern.stratety;

import com.little.pattern.stratety.behavior.FlyWithWings;
import com.little.pattern.stratety.behavior.Quack;

/**
 * 红头鸭
 * Created by littleshu on 18/5/1.
 */
public class RedHeadDuck extends Duck {
    public RedHeadDuck() {
        this.flyBehavior = new FlyWithWings();
        this.quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("红头鸭");
    }
}
